package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.correction.model.Crc_person_prov;
import com.power.sifa.correction.model.pageInfo.Crc_person_provPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  关联省厅社矫人员 Feign
 */
public interface ICrc_person_provFeign {

    /**
     * 关联省厅社矫人员分页列表
     */
    @PostMapping("/crc_person_prov/list")
    ResponseDTO list(@RequestBody Crc_person_provPageInfo crc_person_provPageInfo);

    /**
    * 查看关联省厅社矫人员
    */
    @GetMapping("/crc_person_prov/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除关联省厅社矫人员
    */
    @PostMapping("/crc_person_prov/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看关联省厅社矫人员 复合主键使用
    // */
    //@PostMapping("/crc_person_prov/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Crc_person_prov.Crc_person_provPK pk);

    /**
     * 修改或保存关联省厅社矫人员
     */
    @PostMapping("/crc_person_prov/save")
    ResponseDTO save(@RequestBody Crc_person_prov  crc_person_prov);

    ///**
    // * 删除关联省厅社矫人员 复合主键使用
    // */
    //@PostMapping("/crc_person_prov/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Crc_person_prov.Crc_person_provPK pk);
    
    /**
     * 批量删除关联省厅社矫人员
     */
    @PostMapping("/crc_person_prov/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/crc_person_prov/output")
    void output(HttpServletResponse response, @RequestBody Crc_person_provPageInfo crc_person_provPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/crc_person_prov/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/crc_person_prov/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;


}
